import {CSSProperties,ChangeEvent} from 'react'
export type platformType='android'|'ios'
export interface SwitchPropsType{
    style?:CSSProperties,
    className?:string,
    checked:boolean,
    disabled?:boolean,
    color:string,
    platform?:platformType,
    onClick?:(checked:boolean)=>void,//click事件触发的回调函数，当switch为disabled时，入参的值始终是默认传入的checked值。
    onChange?:(checkes:boolean)=>void,
}